<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<img src="https://wx3.sinaimg.cn/mw690/61e7f4aaly1fvntvqoxhaj21jk2bckjn.jpg" alt="liqin"/>
		
		<script type="text/javascript" src="js/jquery-1.12.4.js" ></script>
		<script>
			var img = document.getElementsByTagName("img")[0]
			console.log(" --- " + img.width)
			window.onload = function(){
				console.log("window.onload --- " + img.width)
			}
			$(function(){
				console.log("jquery ready --- " + $("img").prop("width"))
			})
			img.onload = function(){
				console.log("img.onload --- " + img.width)
			}
			
		</script>
	</body>
</html>
